package edu.uow.devdocs
/**
 * The MeetingMinutes entity.
 *
 * @author    
 *
 *
 */
class MeetingMinutes {
    static mapping = {
         table 'MEETING_MINUTES'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'MEETING_MINUTES_ID'
		 id generator: 'sequence', params:[sequence:'MEETING_MINUTES_SEQ']
         project column:'SUB_SYSTEM_ID'
		 sort dateOfMeeting:'ASC'
    }
    Date dateOfMeeting
    String venue
    String meetingMinutes
    Date lastUpdated
    // Relation
    Project project

    static constraints = {
        dateOfMeeting(nullable: true)
        venue(size: 0..255)
        meetingMinutes(nullable: true)
        lastUpdated(nullable: true)
        project()
    }
    String toString() {
        return "${dateOfMeeting} ${venue}" 
    }
}
